#!/usr/bin/env python3
"""
创建.env文件的脚本
"""

def create_env_file():
    """创建.env文件"""
    env_content = """# LLM配置
LLM_API_KEY=ollama
LLM_API_URL=http://192.168.31.230:11434/v1
LLM_MODEL=deepseek-r1:7b
LLM_MAX_TOKENS=2000
LLM_TEMPERATURE=0.7

# Kylin服务器配置
KYLIN_DEFAULT_SERVER=localhost:8080
KYLIN_API_TIMEOUT=30

# 系统配置
DEFAULT_HOST=127.0.0.1
DEFAULT_PORT=8080
TOOL_TIMEOUT=60

# 智能判断配置
ENABLE_LLM_JUDGMENT=true
LLM_CONFIDENCE_THRESHOLD=0.7
RULE_PRIORITY_THRESHOLD=0.8
ENABLE_LEARNING=true
MAX_HISTORICAL_CONTEXT=100
"""
    
    with open(".env", "w", encoding="utf-8") as f:
        f.write(env_content)
    
    print("✅ 已创建 .env 文件")
    print("📋 配置内容:")
    print(env_content)

if __name__ == "__main__":
    create_env_file() 